GXCleanupStartPage
QuickDraw GX sends theGXCleanupStartPage
message if a message handler fails during the processing of aGXStartPage
message. You can override theGXCleanupStartPage
message to deallocate any storage allocated during processing of theGXStartPage
message. Your override of theGXCleanupStartPage
message must match the following formal declaration:
void MyCleanupStartPage (void);DESCRIPTION
QuickDraw GX sends theGXCleanupStartPage
message after it receives aGXCleanupStartPage
function call from a message handler that failed during aGXStartPage
override and after forwarding theGXStartPage
message.You need to override the
GXCleanupStartPage
message if you perform an operation that must be undone within theGXStartPage
message override. For example, your attempt to allocate memory or initialize a device after forwarding theGXStartPage
message may fail. When you receive this message, you typically deallocate any storage you were using because ofGXStartPage
.The default implementation of
GXCleanupStartPage
disposes of the memory that was allocated during the default implementation of theGXStartPage
message.SPECIAL CONSIDERATIONS
You never send theGXCleanupStartPage
message yourself; however, you can call theGXCleanupStartPage
function, which then sends this message.You must forward the
GXCleanupStartPage
message to other message handlers.SEE ALSO
TheGXStartPage
message is described in the previous section.The
GXCleanupStartPage
function is described on page 5-37 in the chapter "Printing Functions for Message Overrides."
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help